<?php
$servername = "127.0.0.1:3306";
$mydbuser = "root";
$mydbpw = "123456";
$dbname = "onlineExam";
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $mydbuser, $mydbpw);
?>